$main: #007bff;
$shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
// background-image: linear-gradient(-60deg, #ff5858 0%, #f09819 100%);
$border: 1px solid #eaecef;

$featured: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
$cheaper: linear-gradient(to top, #5ee7df 0%, #b490ca 100%);
$quality: linear-gradient(to right, #f78ca0 0%, #f9748f 19%, #fd868c 60%, #fe9a8b 100%);
$school_board: linear-gradient(to right, #868f96 0%, #596164 100%);
$school_board_color: #596164;
// 基础配置
body {
  background-color: rgba(0, 0, 0, 0.03);
  ul {
    padding: 0;
    list-style: none;
  }
}
// 新用户提醒
#new_user_brand {
  display: none;
  #new_user_to_show {
    margin-bottom: 0;
    h1 {
      margin-top: 0;
    }
  }
}
// 搜索框
#search_box {
  position: relative;
  height: 10rem;
  background-image: linear-gradient(120deg, #007bff 0%, rgb(31, 137, 250) 100%);
  margin-bottom: 3rem;
  #index_title {
    font-size: 1rem;
    text-align: center;
    color: rgba(0, 0, 0, 0.6);
    font-weight: lighter;
  }
  @media (min-width: 1000px) {
    #index_subtitle {
      font-size: 2.5rem;
    }
  }
  @media (max-width: 1000px) {
    #index_subtitle {
      font-size: 1.5rem;
      padding-top: 1rem;
    }
  }
  #index_subtitle {
    // font-size: 2.5rem;
    text-align: center;
    color: white;
  }
  #publish {
    display: block;
    margin: 10px auto;
    border-radius: 2rem;
    line-height: 30px;
    width: 150px;
    justify-content: space-between;
    display: flex;
    &:hover {
      a {
        color: #000000;
      }
    }
    img {
      width: 30px;
      border-radius: 30px;
      border: 1px solid #fff;
    }
    a {
      margin-right: 8px;
      color: white;
      text-decoration: none;
    }
  }
  #search {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1.5rem;
    border-radius: 2rem;
    box-shadow: $shadow;
    padding: 0;
    width: 90%;
    .input-group {
      #search_input {
        border-color: rgba(0, 0, 0, 0.1);
        height: 3rem;
        border-radius: 2rem 0 0 2rem;
      }
      button {
        border-color: rgba(0, 0, 0, 0.1);
        background-color: $main;
        border-radius: 0 2rem 2rem 0;
      }
    }
    #associative_box {
      display: none;
      position: absolute;
      z-index: 999;
      #associative_list {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
        padding: 0;
        background-color: #fff;
        width: 100%;
        border-radius: 5px;
        border: solid rgba(0, 0, 0, 0.2) 1px;
        overflow: hidden;
        .associative_item {
          &:hover {
            background-color: rgba(0, 0, 0, 0.2);
          }
          list-style: none;
          line-height: 2.5rem;
          padding-left: 1rem;
          cursor: pointer;
        }
      }
    }
  }
}
// 轮播图和发布榜
#banner {
  .carousel-indicators {
    bottom: 0px;
  }
  #index_banner {
    .carousel-inner {
      border-radius: 5px;
      box-shadow: $shadow;
    }
    .carousel-caption {
      bottom: 0px;
      background: rgba(0, 0, 0, 0.5);
      width: 100%;
      right: 0;
      left: 0;
      p {
        padding: 0 30px;
        margin-bottom: 0;
        margin-bottom: 20px;
      }
    }
  }
}

#view_demand {
  .jumbotron{
    margin-top: 30px;
    border-radius: 5px;
    padding: 30px 10px;
  }
  .demand {
    margin-top: 20px;
    .card-body {
      padding-bottom: 60px;
      .btn {
        position: absolute;
        right: 20px;
      }
    }
  }
}

// 页脚
#footer {
  background-color: rgba(0, 0, 0, 0.04);
  margin-top: 1rem;
  .container {
    .img_bg {
      width: 50%;
      display: block;
      margin: 1rem auto;
    }
    .footer_text {
      position: absolute;
      top: 0;
      bottom: 0;
      right: 0;
      left: 0;
      margin: auto;
      height: 60%;
      width: 90%;
      h1,
      h2 {
        font-size: 1.5rem;
        color: rgba(0, 0, 0, 0.7);
        font-weight: 100;
      }
      h3 {
        font-size: 1rem;
        color: rgba(0, 0, 0, 0.5);
      }
    }
  }
}
